package com.terren.excavator.entity;

/**
 * 稿件信息
 * @author Administrator
 *
 */
public class Content {
	private long contentid;
	private int month;
	private String title;
	private String url;
	private String content;
	private String customer;
	
	/**
	 * 标识 content是否为空,0 空 1非空
	 */
	private int isContent;
	
	
	public long getContentid() {
		return contentid;
	}
	public void setContentid(long contentid) {
		this.contentid = contentid;
	}
	public int getMonth() {
		return month;
	}
	public void setMonth(int month) {
		this.month = month;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getCustomer() {
		return customer;
	}
	public void setCustomer(String customer) {
		this.customer = customer;
	}
	/**
	 * 自动根据 content 是否为空，判断标识
	 * @return
	 */
	public int getIsContent() {
		if(this.content != null){
			this.isContent = 1;
		}else{
			this.isContent = 0;
		}
		return isContent;
	}
}
